<?php

namespace Catalog;

use Doctrine\ORM\Mapping as ORM;

/**
 * Catalog\PdfFile
 *
 * @ORM\Table(name="pdf_file")
 * @ORM\Entity
 */
class PdfFile
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string $url
     *
     * @ORM\Column(name="url", type="string", length=255, nullable=false)
     */
    private $url;

    /**
     * @var boolean $isParsed
     *
     * @ORM\Column(name="is_parsed", type="boolean", nullable=false)
     */
    private $isParsed;

    /**
     * @var boolean $isDel
     *
     * @ORM\Column(name="is_del", type="boolean", nullable=false)
     */
    private $isDel;

    /**
     * @var Catalog\Issue
     *
     * @ORM\ManyToOne(targetEntity="Catalog\Issue")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="issue_id", referencedColumnName="id")
     * })
     */
    private $issue;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set url
     *
     * @param string $url
     * @return PdfFile
     */
    public function setUrl($url)
    {
        $this->url = $url;
        return $this;
    }

    /**
     * Get url
     *
     * @return string 
     */
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * Set isParsed
     *
     * @param boolean $isParsed
     * @return PdfFile
     */
    public function setIsParsed($isParsed)
    {
        $this->isParsed = $isParsed;
        return $this;
    }

    /**
     * Get isParsed
     *
     * @return boolean 
     */
    public function getIsParsed()
    {
        return $this->isParsed;
    }

    /**
     * Set isDel
     *
     * @param boolean $isDel
     * @return PdfFile
     */
    public function setIsDel($isDel)
    {
        $this->isDel = $isDel;
        return $this;
    }

    /**
     * Get isDel
     *
     * @return boolean 
     */
    public function getIsDel()
    {
        return $this->isDel;
    }

    /**
     * Set issue
     *
     * @param Catalog\Issue $issue
     * @return PdfFile
     */
    public function setIssue(\Catalog\Issue $issue = null)
    {
        $this->issue = $issue;
        return $this;
    }

    /**
     * Get issue
     *
     * @return Catalog\Issue 
     */
    public function getIssue()
    {
        return $this->issue;
    }
}